<?php

namespace App\Http\Controllers\Front;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Product;

class StoreController extends Controller
{
    
    /**
     * 用户发布的商品
     */
    public function product()
    {
        $limit = $request->input('size', 15);
    
        $orm = Product::orderBy('id','DESC');
        return $this->success($orm->paginate($limit));
    }

}
